package com.humngyang.com.hmy.study.springtest.mybatis;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface UserDao {

    @Select("select * from user")
    public List<Map<String,Object>> queryAll();

    @Select("select * from user where userid=#id")
    public List<Map<String,Object>> queryById(@Param("id") String id);
}
